package com.yjd.comm.regist.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.regist.model.UserRegSourceModel;

/**
 * <b>description</b>：用户注册来源表业务接口<br>
 * <b>time</b>：2015-05-12 15:56:00 <br>
 * <b>author</b>：  SongJian 491835898@qq.com
 */
public interface IUserRegSourceService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public UserRegSourceModel insert(UserRegSourceModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(UserRegSourceModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id) throws Exception;
	
	
	/**
	 * 引流平台 计数
	 * @return
	 * @throws Exception
	 */
	public List getUserCountFromRegSource(Map param) throws Exception;
	
	/**
	 * 查看某渠道下,各ID引流统计
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public List getChannelRegList(Map param) throws Exception;
}
